package com.orangelife.webservice.service.propFeeType;

import java.util.List;
import java.util.Map;

import javax.jws.WebParam;
import javax.jws.WebService;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.Response;

import org.apache.cxf.interceptor.InInterceptors;
import org.apache.cxf.interceptor.OutInterceptors;

import com.orangelife.service.PropFeeType.model.PropFeeTypeDto;

/*****************************************************************
 * Copyright(C) ORANGELIFE Corporation 2015. All Rights Reserved.
 *****************************************************************/
/*
 * ============================================================== 功能名
 * propFeeType类 的WebService基本作业
 * 
 * @author @author zhr
 * 
 * @version 1.1.0
 * 
 * @date 2016-07-04 14:16:18
 * ==============================================================
 */
@WebService
@InInterceptors(interceptors = "org.apache.cxf.interceptor.LoggingInInterceptor")
@OutInterceptors(interceptors = "org.apache.cxf.interceptor.LoggingOutInterceptor")
public interface IPropFeeTypeWebService {

	/**
	 * 用途 添加 （橙子生活）
	 * 
	 * @author zhr
	 * @date创建时间 2016-07-04 14:16:18
	 * @param servletRequest
	 * @param propFeeType
	 * @return
	 * @throws Exception
	 */

	@POST
	@Path("/add")
	@Produces({ "application/json" })
	public Response addPropFeeType(@Context HttpServletRequest servletRequest,
			@WebParam PropFeeTypeDto propFeeType) throws Exception;

	/***
	 * 新版配置
	 * 
	 * @param servletRequest
	 * @param propFeeType
	 * @return
	 * @throws Exception
	 */
	@POST
	@Path("/addPropFeeType")
	@Produces({ "application/json" })
	public Response addPropFeeTypes(@Context HttpServletRequest servletRequest,
			@WebParam PropFeeTypeDto propFeeType) throws Exception;

	/**
	 * 用途 修改（橙子生活）
	 * 
	 * @author zhr
	 * @date创建时间 2016-07-04 14:16:18
	 * @param servletRequest
	 * @param propFeeType
	 * @return
	 * @throws Exception
	 */
	@PUT
	@Path("/edit")
	@Produces({ "application/json" })
	public Response editPropFeeType(@Context HttpServletRequest servletRequest,
			@WebParam PropFeeTypeDto propFeeType) throws Exception;

	/**
	 * 用途 删除（橙子生活）
	 * 
	 * @date 创建时间 2016-07-04 14:16:18
	 * @author zhr
	 * @param servletRequest
	 * @param feeTypeID
	 * @return
	 * @throws Exception
	 */
	@DELETE
	@Path("{feeTypeID}")
	@Produces({ "application/json" })
	public Response deletePropFeeType(
			@Context HttpServletRequest servletRequest,
			@PathParam("feeTypeID") String feeTypeID) throws Exception;

	/**
	 * 用途 详情（橙子生活）
	 * 
	 * @date 创建时间 2016-07-04 14:16:18
	 * @author zhr
	 * @param servletRequest
	 * @param feeTypeID
	 * @return
	 * @throws Exception
	 */
	@GET
	@Path("{feeTypeID}/")
	@Produces({ "application/json" })
	public Response findPropFeeTypeByID(
			@Context HttpServletRequest servletRequest,
			@PathParam("feeTypeID") String feeTypeID) throws Exception;

	/**
	 * 用途 查询列表（橙子生活）
	 * 
	 * @author zhr
	 * @date 创建时间 2016-07-04 14:16:18
	 * @param servletRequest
	 * @param search
	 *            搜索内容
	 * @param tsCreate
	 *            创建时间
	 * @param pageIndex
	 *            页码
	 * @param pageSize
	 *            页面大小
	 * @return
	 * @throws Exception
	 */
	@GET
	@Produces({ "application/json" })
	public Response getAllPropFeeType(
			@Context HttpServletRequest servletRequest,
			@QueryParam("type") String type,
			@QueryParam("commID") String commID,
			@QueryParam("search") String search,
			@QueryParam("tsCreate") String tsCreate,
			@QueryParam("pageIndex") String pageIndex,
			@QueryParam("pageSize") String pageSize) throws Exception;

	/***
	 * 查询费用肋膜炎
	 * 
	 * @param servletRequest
	 * @param commID
	 * @param search
	 * @param tsCreate
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	@GET
	@Path("/propFeeTypeInfos")
	@Produces({ "application/json" })
	public Response getPropFeeTypeInfo(
			@Context HttpServletRequest servletRequest,
			@QueryParam("type") String type,
			@QueryParam("commID") String commID,
			@QueryParam("search") String search,
			@QueryParam("tsCreate") String tsCreate,
			@QueryParam("pageIndex") String pageIndex,
			@QueryParam("pageSize") String pageSize) throws Exception;

	/***
	 * 获取小区下的缴费类目列表(包含层级)
	 * 
	 * @param servletRequest
	 * @param commID
	 * @param search
	 * @param tsCreate
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	@GET
	@Path("/propFeeTypeLevel")
	@Produces({ "application/json" })
	public Response propFeeTypeLevel(
			@Context HttpServletRequest servletRequest,
			@QueryParam("type") String type,
			@QueryParam("commID") String commID,
			@QueryParam("search") String search,
			@QueryParam("tsCreate") String tsCreate,
			@QueryParam("pageIndex") String pageIndex,
			@QueryParam("pageSize") String pageSize) throws Exception;

	/**
	 * 用途 查询列表（橙子生活）
	 * 
	 * @author zhr
	 * @date 创建时间 2016-07-04 14:16:18
	 * @param servletRequest
	 * @param search
	 *            搜索内容
	 * @param tsCreate
	 *            创建时间
	 * @param pageIndex
	 *            页码
	 * @param pageSize
	 *            页面大小
	 * @return
	 * @throws Exception
	 */

	@POST
	@Path("/bauthfinds")
	@Produces({ "application/json" })
	public Response bauthFindPropFeeTypes(
			@Context HttpServletRequest servletRequest,
			@WebParam Map<String, Object> propFeeType) throws Exception;

	/**
	 * 用途 查询列表（橙子生活）
	 * 
	 * @author zhr
	 * @date 创建时间 2016-07-04 14:16:18
	 * @param servletRequest
	 * @param search
	 *            搜索内容
	 * @param tsCreate
	 *            创建时间
	 * @param pageIndex
	 *            页码
	 * @param pageSize
	 *            页面大小
	 * @return
	 * @throws Exception
	 */

	@POST
	@Path("/bauthfind")
	@Produces({ "application/json" })
	public Response bauthFindPropFeeType(
			@Context HttpServletRequest servletRequest,
			@WebParam List<String> propFeeType) throws Exception;

	/***
	 * 获取费用树形
	 * 
	 * @param servletRequest
	 * @return
	 * @throws Exception
	 */
	@GET
	@Path("/feeTypeTree")
	@Produces({ "application/json" })
	public Response getFeeTypeTree(@Context HttpServletRequest servletRequest,
			@QueryParam("commID") String commID) throws Exception;

	/****
	 * 查询费用类目（用于同步财务中心）
	 * 
	 * @param servletRequest
	 * @param commID
	 * @return
	 * @throws Exception
	 */
	@GET
	@Path("/fnumber")
	@Produces({ "application/json" })
	public Response getFnumber(@Context HttpServletRequest servletRequest,
			@QueryParam("commID") String commID) throws Exception;

	/***
	 * 根据缴费查询费用
	 * 
	 * @param servletRequest
	 * @param propFeeType
	 * @return
	 * @throws Exception
	 */
	@POST
	@Path("/feeDetail")
	@Produces({ "application/json" })
	public Response getFeeTypeByFeeDetail(
			@Context HttpServletRequest servletRequest,
			@WebParam Map<String, Object> propFeeType) throws Exception;
	@POST
	@Path("/propFeeTypeInfoByMap")
	@Produces({ "application/json" })
	public Response getPropFeeTypeInfoByMap(
			@Context HttpServletRequest servletRequest,
			@WebParam Map<String,Object> params) throws Exception;
}
